﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Creation.SinglePattern;

namespace dpdw.testing.Creation
{
    [TestClass]
    public class TestSinglePattern
    {
        [TestMethod]
        public void TestSinglePatternMethod1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestSinglePatternMethod1");

            Singleton singleton1 = Singleton.GetInstance();
            Singleton singleton2 = Singleton.GetInstance();

            Assert.AreEqual(singleton1, singleton2);

            singleton1.ThankYou();
            singleton2.ThankYou();
        }
    }
}
